//
//  CustomerListModel.swift
//  Employee
//
//  Created by tancheng on 2018/7/23.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON




struct CustomerListModel: ModelProtocol {
    
    
    
    var customerType: String//CustomerType = .owner
    let id: String
    let name: String
    let numberDesc: String
    
    init(json: JSON) {
        
        customerType = json["customerType"].stringValue
       
        id = json["id"].stringValue
        name = json["name"].stringValue
        numberDesc = json["numberDesc"].stringValue
    }
    
    static func array(from jsonArray: [JSON]) -> [CustomerListModel] {
        return jsonArray.map({CustomerListModel.init(json: $0)})
    }
    
    
    
    
    
}

struct CustomerListSend {
    var keyword = ""
    var pageIndex = "1"
    var pageSize = "20"
}
